import java.util.Calendar;
import java.util.Date;


public class Financial_Item implements IFinancial_Item
{
	String itemName = "";
	String itemDescription = "";
	Double itemValue = 0.00;
	Calendar itemDate = null;
	ItemPriority itemPriority = null;
	Boolean recurringItem = null;
	ItemRecurrence recurrenceNature = null;
	
	
	public Financial_Item(String itemName, String itemDesc, double itemValue, boolean recurrence, 
							ItemRecurrence recNature, ItemPriority priority)
	{
		this.itemName = itemName;
		this.itemDescription = itemDesc;
		this.recurringItem = new Boolean(recurrence);
		this.itemValue = new Double(itemValue);
		this.itemPriority = priority;
		this.recurrenceNature = recNature;
		
		itemDate = Calendar.getInstance();
	}
	
	public void setDay_Of_Month(int value)
	{
		itemDate.set(Calendar.DAY_OF_MONTH, value);
	}
	
	public void setMonth(int value)
	{
		itemDate.set(Calendar.MONTH, value);
	}
	
	public void setYear(int value)
	{
		itemDate.set(Calendar.YEAR, value);
	}
	
	public String getItemName()
	{
		return itemName;
	}
	
	public String getItemDesc()
	{
		return itemDescription;
	}
	
	public double getItemValue()
	{
		return itemValue.doubleValue();
	}
	
	public String getItemPriority()
	{
		return itemPriority.toString();
	}
	
	public boolean getRecurrence()
	{
		return recurringItem.booleanValue();
	}
	
	public String getRecurrenceNature()
	{
		return this.recurrenceNature.toString();
	}
	
	public int getItemDay_Of_Month()
	{
		return itemDate.get(Calendar.DAY_OF_MONTH);
	}
	
	public int getItemMonth()
	{
		return itemDate.get(Calendar.MONTH);
	}
	
	public int getItemYear()
	{
		return itemDate.get(Calendar.YEAR);
	}
	
	public Date getDate()
	{
		return itemDate.getTime();
	}
}
